package com.xw.Model.api;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Email;

import com.xw.Beans.SendingMail;

/**
 * 描述:发送邮件api参数封装
 * @author 杨建全
 * @date 2017年5月27日 上午11:20:56
 */
public class SendMailApiModel {
	
	@Email(message="mailBox不合法！")
	private String mailBox;
	
	@Valid
	@NotNull(message="邮件相关信息不能为空")
	private SendingMail mail;
	public String getMailBox() {
		return mailBox;
	}
	public void setMailBox(String mailBox) {
		this.mailBox = mailBox;
	}
	public SendingMail getMail() {
		return mail;
	}
	public void setMail(SendingMail mail) {
		this.mail = mail;
	}
	@Override
	public String toString() {
		return "SendMailApiModel [mailBox=" + mailBox + ", mail=" + mail + "]";
	}
	
}
